package com.corx.network.mysqlstorage.repository;


import com.corx.network.mysqlstorage.common.PageQuery;
import com.corx.network.mysqlstorage.common.PageResult;
import com.corx.network.mysqlstorage.model.DeviceModelBind;

import java.util.List;
import java.util.Optional;

/**
 * @author gx
 * @version 1.0.0
 */
public interface DeviceModelBindRepository {

    Optional<DeviceModelBind> findById(Long id);

    List<DeviceModelBind> findByDeviceId(String deviceId);

    PageResult<DeviceModelBind> findByPage(DeviceModelBind model, PageQuery pageQuery);

    void save(DeviceModelBind model);

    void update(DeviceModelBind model);

    void delete(Long id);
}
